<?php 

$showAdmin = 1;

switch($do){
	case "categories":	
		$showAdmin = 1;
		break;	
	case "users":
		$showAdmin = 1;
		break;
	case "bao_tri":
		$showAdmin = 1;
		break;
	case "infos":
		$showAdmin = 1;
	case "comments":
		$showAdmin = 1;
		break;
   	case "main":
		$showAdmin = 1;
		break;	
    case "constant":
		$showAdmin = 1;
		break;	    
        
    case "banner":	
		$showAdmin = 2;
		break;	
    case "img":	
		$showAdmin = 2;
		break;
    case "img_group":	
		$showAdmin = 2;
		break;
	case "video":
		$showAdmin = 2;
		break;  
	case "certificate":
		$showAdmin = 2;
		break; 
    case "articles":	
		$showAdmin = 3;
		break;	
    case "products":	
		$showAdmin = 3;
		break;
    case "member":	
		$showAdmin = 3;
		break;    
    case "hotels":	
		$showAdmin = 3;
		break; 
    case "provinces":	
		$showAdmin = 3;
		break;
    case "regions":	
		$showAdmin = 3;
		break;           
    case "nicks":	
		$showAdmin = 3;
		break;	
    case "optin":	
		$showAdmin = 4;
		break;	
	case "optin_type":	
		$showAdmin = 4;
		break;
	case "orders":	
		$showAdmin = 5;
		break;	
	default:
		$showAdmin = 0;
		break;
}
?>
<?
	define('PATH_ADMIN','admin.php');
?>
<div class="topmenucontainer">
  <center>
    <ul id="nav">
      <li><a href="">CMS</a>
        <ul>          
          <li><a href="<?=PATH_ADMIN?>?do=categories&act=list&cid=121&root=1" <?=($do=='categories')?'class="selected"':''?>>Thể loại</a></li>
          <li><a href="">Cấu Hình</a></li>
        </ul>
      </li>
      <li><a href="">Sản Phẩm</a>
        <ul>
          <li><a href="">Pages</a></li>
          <li><a href="">Image Manager</a></li>
          <li><a href="">Global Content Blocks</a></li>
          <li><a href="">File Manager</a></li>
          <li><a href="">News</a></li>
        </ul>
      </li>
      <li><a href="">Tin Tức</a>
        <ul>
          <li><a href="">Templates</a></li>
          <li><a href="">Stylesheets</a></li>
          <li><a href="">Menu Manager</a></li>
          <li><a href="">Theme Manager</a></li>
        </ul>
      </li>
      <li><a href="">Users & Groups</a>
        <ul>
          <li><a href="<?=PATH_ADMIN?>?do=users" class="<?=($do=='users')?'selected':''?>" >Users</a></li>
          <li><a href="">Groups</a></li>
          <li><a href="">Group Assignments</a></li>
          <li><a href="">Group Permissions</a></li>
        </ul>
      </li>
      <li><a href="" class="selected">Hình Ảnh</a>
        <ul>
          <li><a href="" class="selected">My Account</a></li>
          <li><a href="">User Preferences</a></li>
          <li><a href="">Manage Shortcuts</a></li>
        </ul>
      </li>
      <li><a href="<?=PATH_ADMIN?>?do=question_choice">Câu Hỏi</a>
      </li>
    </ul>
  </center>
  <div class="clearb"></div>
</div>
